package com.itqf;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

/**
 * @Description:
 * @Company: 千锋互联
 * @Author: 李丽婷
 * @Date: 2020/12/23
 * @Time: 上午10:58
 */
@SpringBootApplication
@EnableEurekaClient
public class EurekaClientConsumerApplication {

    public  static  void  main(String[]args){
        SpringApplication.run(EurekaClientConsumerApplication.class,args);
    }

    @Bean
    public RestTemplate restTemplate(){
        //调用服务
        RestTemplate restTemplate = new RestTemplate();
        return restTemplate;
    }

}
